package mychat.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import mychat.dao.MessageDao;
import mychat.dao.UserDao;
import mychat.dao.imp.MessageDaoImp;
import mychat.dao.imp.UserDaoImp;

public class DaoFactory {
	
	public static UserDao getUserDao() throws SQLException{
		return new UserDaoImp(ConnectionPools.getConnection());
	}
	public static MessageDao getMessageDao() throws SQLException{
		return new MessageDaoImp(ConnectionPools.getConnection());
	}

}
